package personal.vivian.entity;

import org.apache.commons.lang3.RandomUtils;

import java.util.List;
import java.util.Random;

public class UserInfo {
    private String userName;
    private String password;
    List<SysRole> roleList;

    public List<SysRole> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<SysRole> roleList) {
        this.roleList = roleList;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getCredentialsSalt(){
        return this.userName+RandomUtils.nextInt();
    }
}
